home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WinXP Login Window Message Count.xpl < prev    next >
Text File  |  2002-11-24  |  1KB  |  51 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="7"
  3. "COUNT"="2"
  4. "UIPATH"="Startup/Shutdown\Startup\Windows NT/2K/XP\31) Inside Login Window"
  5. "NAME"="Welcome Window Message Count"
  6. "VERSION"="1.00"
  7. "LANGUAGE"="VBScript"
  8. "OSVERSION"="0000011"
  9. "TEXT 1"="Display new hotmail message count (default)"
  10. "TEXT 2"="Do not display new hotmail message count"
  11. "DESCRIPTION 1"="If you have a hotmail account and are using Windows Messenger, Windows Messenger will from time to time check your hotmail account for new messages."
  12. "DESCRIPTION 2"="When this setting is turned on, Windows will display on the Welcome Screen how many new messages any of the registered users have."
  13. "AUTHOR"="Xteq Systems"
  14. "CONTACTURL"="http://www.xteq.com/"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"="Thanks to Pierre Szwarc [pierre.szwarc@laposte.net] for this tweak!"
  17.  
  18.  
  19.  
  20.  
  21. sP1="HKLM\Software\Microsoft\Windows\CurrentVersion\UnreadMail\MessageExpiryDays" 'DW
  22.  
  23. Sub Plugin_Initialize 
  24.  i=RegReadValue(sP1)
  25.  
  26.  if i=3 or IsEmpty(i)=true then 
  27.     SetUIElement 1,true
  28.  else
  29.    SetUIElement 2,true
  30.  end if
  31. End Sub
  32.  
  33. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  34.  if GetUIElement(1)=true then
  35.     vVal=3
  36.  else
  37.     vVal=0
  38.  end if
  39.  
  40.  Call RegWriteValue(sP1,vVal,2)
  41.  
  42.  Call Restart()
  43. End Sub
  44.  
  45.  
  46. Sub Plugin_Terminate 
  47. End Sub
  48.  
  49.  
  50.  
  51.